﻿using System.Collections.Generic;
using Gp.Scripts.Data;
using Gp.Scripts.Data.Equip;
using Gp.Scripts.Core;

namespace Gp.Scripts.Equip {
    public class ShieldWeaponInfo : WeaponTypeInfo<ShieldWeaponType>,  IArmorProvider{
        public ShieldWeaponInfo(ShieldWeaponType type, WeaponEntity entity) : base(type, entity) {
            _fragment = new ArmorFragmentEntity(this, () => WeaponType.defencePoint, 1, true);
        }

        private ArmorFragmentEntity _fragment;

        public override bool IsBroken { get => false;
            set { } 
        }

        public IEnumerable<ArmorFragmentEntity> ArmorFragments {
            get {
                yield return _fragment;
            }
        }

        public override int GetDamage() {
            return WeaponType.damage;
        }
        
        

    }
}